package com.ipzoe.web.core.beetl;

import com.ipzoe.web.core.i18n.I18nUtil;
import org.beetl.core.Context;
import org.beetl.core.Function;

import javax.servlet.http.HttpServletRequest;

public class I18nBeetlFunction implements Function {
    @Override
    public Object call(Object[] objects, Context context) {

        String code = String.valueOf(objects[0]);

        return I18nUtil.get(code);
    }
}
